﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Detail.aspx.cs" Inherits="DaoYou.Web.Detail" %>

<%@ Register Src="~/Controller/BannerSearch.ascx" TagName="BannerSearch" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="<%= Page.ResolveUrl("~/js/Plug/My97DatePicker/WdatePicker.js") %>"
        type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!-- START small_banner -->
    <section class="small_banner">
        <div class="center-wrap">
            <p class="page-banner-heading">
                <%= this.UserInfo.FullName %></p>
            <uc1:BannerSearch runat="server" ID="BannerSearch1" />
            <!-- END banner-search -->
            <div class="breadcrumbs">
                <a href="<%= Page.ResolveUrl("~/") %>">网站首页</a> &rarr; <a href="<%= Page.ResolveUrl("~/GuiderList.aspx") %>">
                    查询导游</a> &rarr; <span class="current_crumb">
                        <%= this.UserInfo.FullName %></span>
            </div>
            <!-- END breadcrumbs -->
        </div>
        <!-- END center-wrap -->
        <div class="shadow top">
        </div>
        <div class="shadow bottom">
        </div>
        <div class="tt-overlay">
        </div>
    </section>
    <section id="content-container" class="clearfix">
        <div id="main-wrap" class="clearfix">
            <div class="page_content blog_page_content">
                <div id="post-1">
                    <article class="preview blog-main-preview">
                        <h2>
                            <a href="#" title="<%= this.UserInfo.FullName %>">
                                <%= this.UserInfo.FullName %></a></h2>
                        <span class="metadata postinfo">
                            <%= this.UserInfo.Sex == "M" ? "女" : "男" %></span>
                        <div>
                            <% string src = string.IsNullOrWhiteSpace(this.UserInfo.HeadImageName) ? string.Empty : Page.ResolveUrl("~/upload/" + this.UserInfo.UserName + "/" + this.UserInfo.HeadImageName); %>
                            <img src="<%=src %>" alt="<%= this.UserInfo.FullName %>" /></div>
                        <p>
                            <% if (!string.IsNullOrWhiteSpace(this.UserInfo.Mobile))
                               {%>手机：<%= this.UserInfo.Mobile%>,
                            <%} %>
                            <% if (!string.IsNullOrWhiteSpace(this.UserInfo.Email))
                               { %>Email：<%= this.UserInfo.Email%>,
                            <%} %>
                            <% if (this.UserInfo.Birthday.HasValue)
                               {%>出生日期：<%= this.UserInfo.Birthday.Value.ToString("yyyy年MM月dd日")%>,
                            <%} %><% if (!string.IsNullOrWhiteSpace(this.UserInfo.HomeTown))
                                     {%>家乡：<%= this.UserInfo.HomeTown%><%} %></p>
                        <% if (!string.IsNullOrWhiteSpace(this.UserInfo.Province) || !string.IsNullOrWhiteSpace(this.UserInfo.City) || !string.IsNullOrWhiteSpace(this.UserInfo.District))
                           {%>
                        <p>
                            所在地区：<%= string.IsNullOrWhiteSpace(this.UserInfo.Province) ? string.Empty : this.UserInfo.Province + ", "%><%= string.IsNullOrWhiteSpace(this.UserInfo.City) ? string.Empty : this.UserInfo.City + ", "%><%= string.IsNullOrWhiteSpace(this.UserInfo.District) ? string.Empty : this.UserInfo.District%></p>
                        <%} %>
                        <% if (!string.IsNullOrWhiteSpace(this.UserInfo.Address))
                           {%>
                        <p>
                            住址：<%= this.UserInfo.Address%></p>
                        <%} %>
                        <p>
                            <%= this.Introduction %></p>
                        <div class="post-details">
                            <p class="post-categories">
                                <strong>注册日期:</strong> <a href="#">
                                    <%= this.UserInfo.CreatedTime.ToString("yyyy-MM-dd") %></a></p>
                        </div>
                        <!-- END post-details -->
                    </article>
                </div>
                <!-- END post-ID -->
                <p class="tt-comment-count">
                    <%= this.CommentList == null || this.CommentList.Count == 0 ? "暂无评论" : this.CommentList.Count + "人评论" %></p>
                <div id="blog-comment-outer-wrap">
                    <% if (this.CommentList != null && this.CommentList.Count > 0)
                       {%>
                    <ol class="comment-ol" id="post-comments">
                        <% foreach (RenChangYou.Model.DY_Comment f in this.CommentList)
                           {
                               string headimg = this.UserHeadImage(f.userName);
                        %>
                        <li class="comment even thread-even depth-1" id="li-comment-<%=f.id %>">
                            <div class="comment-wrap">
                                <div class="comment-content" id="comment-<%=f.id %>">
                                    <% if (!string.IsNullOrWhiteSpace(headimg))
                                       {%>
                                    <div class="comment-gravatar">
                                        <img alt="<%= f.userName %>" src="<%= headimg %>" class="avatar avatar-60 photo"
                                            height="60" width="60" />
                                    </div>
                                    <%} %>
                                    <div class="comment-text">
                                        <span class="comment-author"><a href="#" rel="external nofollow" class="url">
                                            <%= f.userName %></a></span> <span class="comment-date">
                                                <%=f.CreatedTime.ToLocalTime() %></span>
                                        <p>
                                            <%= RenChangYou.BLL.DY_Comment.GetRankDescription(f.rank) %></p>
                                        <p>
                                            <%= f.rankContent %></p>
                                    </div>
                                    <!-- END comment-text
                                -->
                                </div>
                                <!-- END comment-content -->
                            </div>
                            <!-- END comment-wrap -->
                        </li>
                        <%} %>
                    </ol>
                    <%} %>
                    <div id="respond">
                        <h3 class="comment-title">
                            我要点评</h3>
                        <p>
                            <label for="txtUserName">
                                您的姓名 <span>*</span></label>
                            <input type="text" id="txtUserName" runat="server" name="txtUserName" size="22" tabindex="1" />
                        </p>
                        <p>
                            <label for="txtUserName">
                                您打几分 <span>*</span></label>
                            <asp:DropDownList ID="ddlScore" runat="server" Width="100px" Height="31px">
                                <asp:ListItem Value="0">请选择</asp:ListItem>
                                <asp:ListItem Value="1">不满意</asp:ListItem>
                                <asp:ListItem Value="2">一般</asp:ListItem>
                                <asp:ListItem Value="3">合格</asp:ListItem>
                                <asp:ListItem Value="4">良好</asp:ListItem>
                                <asp:ListItem Value="5">很满意</asp:ListItem>
                            </asp:DropDownList>
                        </p>
                        <p>
                            <label for="txtComment">
                                您的点评 <span>*</span></label>
                            <textarea id="txtComment" runat="server" name="txtComment" cols="58" rows="10" tabindex="2"></textarea>
                        </p>
                        <p>
                            <asp:Button ID="btn_comment" CssClass="submit tt-form-submit" TabIndex="3" runat="server"
                                Text="确认提交" OnClick="btn_comment_Click" />
                        </p>
                    </div>
                    <!-- END respond -->
                </div>
                <!-- END blog-comment-outer-wrap -->
            </div>
            <aside class="sidebar blog_sidebar">
                <div class="sidebar-widget">
                    <label>
                        出发城市：</label>
                    <input type="text" runat="server" id="txtDCity" clientidmode="Static" style="width: 180px" />
                    <label>
                        到达城市：</label>
                    <input type="text" runat="server" id="txtACity" clientidmode="Static" style="width: 180px" />
                    <label>
                        起始日期：</label>
                    <input type="text" runat="server" id="txt_startDate" clientidmode="Static" onclick="WdatePicker()"
                        style="width: 180px" />
                    <label>
                        截止日期：</label>
                    <input type="text" runat="server" id="txt_endDate" clientidmode="Static" onclick="WdatePicker()"
                        style="width: 180px" />
                    <label>
                        出行人数：</label>
                    <input type="text" runat="server" id="txtPersonNumber" clientidmode="Static" style="width: 180px" placeholder="填写数字" />
                    <label>
                        第一联系人：</label>
                    <input type="text" runat="server" id="txtPersonA" clientidmode="Static" style="width: 180px" />
                    <label>
                        联系方式：</label>
                    <input type="text" runat="server" id="txtContactWayA" clientidmode="Static" style="width: 180px" placeholder="建议手机" />
                    <label>
                        第二联系人：</label>
                    <input type="text" runat="server" id="txtPersonB" clientidmode="Static" style="width: 180px" />
                    <label>
                        联系方式：</label>
                    <input type="text" runat="server" id="txtContactWayB" clientidmode="Static" style="width: 180px" placeholder="建议手机" />
                    <label>
                        备注留言：</label>
                    <asp:TextBox ID="txtRemark" Width="180px" runat="server" Height="30px" TextMode="MultiLine"></asp:TextBox>
                    <br />
                    <br />
                    <asp:Button ID="btn_booking" ClientIDMode="Static" runat="server" CssClass="button green large"
                        Text="立即预订" OnClick="btn_booking_Click" />
                </div>
            </aside>
            <!-- END sidebar -->
        </div>
        <!-- END main-wrap -->
    </section>
    <!-- END content-container -->
</asp:Content>
